package com.dtf.admin.manage.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.dtf.admin.common.utils.MapUtils;
import com.dtf.admin.common.utils.mybatis.DaoUtils;
import com.dtf.admin.manage.service.CodeGenerationBo;
import com.github.pagehelper.PageInfo;

@Service(version = "1.0.0",interfaceClass=CodeGenerationBo.class)
public class CodeGenerationBoImpl implements CodeGenerationBo{
	
	private static final Log log = LogFactory.getLog(CodeGenerationBoImpl.class);
	
	@Autowired
	private DaoUtils daoUtils;
	
	@Override
	public PageInfo queryAllTable(Map param) {
		return daoUtils.selectPage("CodeGeneration.queryAllTable", param, 
				MapUtils.getInt(param, "pageNum"), MapUtils.getInt(param, "pageSize"));
	}

	@Override
	public Map codeGeneration(Map param) {
		List<Map> list =  daoUtils.selectList("CodeGeneration.queryTableColumns", param);
		
		return null;
	}
	
}
